Skip to content

fix(create-react-native-library): fix npm install and missing lint dependencies - #956

Closed
MatrixNeoKozak wants to merge 1 commit into
callstack:mainfrom
MatrixNeoKozak:fix/fix-create-react-native-library-fix-npm-install-and-missing-lint-dependencies-1791876864807
Closed

MatrixNeoKozak wants to merge 1 commit into
callstack:mainfrom
MatrixNeoKozak:fix/fix-create-react-native-library-fix-npm-install-and-missing-lint-dependencies-1791876864807

Conversation

@MatrixNeoKozak

Copy link
Copy Markdown

What

Fixes ERESOLVE peer dependency issues with prettier by using ^3.0.0, and adds missing eslint-plugin-react-native dependency along with correct version for eslint-plugin-prettier as reported in issue #919.

Why

This change resolves the target issue or improvement.

How to test

Verify that the project builds/runs correctly and the specific bug/improvement is addressed.

Fixes #919

@satya164

satya164 commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Thanks for the PR. The template was already updated to use prettier v3 in #930, and the fix is out in create-react-native-library@0.58.0. So the ERESOLVE error from #919 doesn't happen with the latest version.

eslint-plugin-react-native doesn't need to be added either. It's a dependency of @react-native/eslint-config, and npm hoists it to the top-level node_modules, so ESLint can find it. Installing the template's dependencies with npm and running eslint with the template's config works without errors.

The remaining changes lower the minimum versions of prettier and eslint-plugin-prettier, which goes against the regular dependency upgrades in the template. So closing this. If you still see the error with the latest version, please open a new issue with the steps to reproduce.

@satya164 satya164 closed this Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doesn't work with NPM

2 participants